﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DataService.Core.ServiceDTO
{
    public class ModelIndexs
    {
        public long Id { get; set; }
        /// <summary>
        /// 数据库名称/表空间
        /// </summary>
        public string DataBaseName { get; set; }
        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 索引名称
        /// </summary>
        public string IndexName { get; set; }
        public int IndexId { get; set; }
        /// <summary>
        /// 索引类型
        /// </summary>
        public string IndexType { get; set; }
        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName { get; set; }
        /// <summary>
        /// 索引排序
        /// </summary>
        public string Sort { get; set; }
        /// <summary>
        /// true:主键，false:非主键
        /// </summary>
        public bool PrimaryKey { get; set; }

        public bool UQIQUE { get; set; }
        /// <summary>
        /// 索引分类 如CLUSTER
        /// </summary>
        public string Type_Desc { get; set; }

        /// <summary>
        /// 表名（含分表标识）
        /// </summary>
        public string FullTableName { get; set; }
    }

}
